{% load i18n %}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
<title>jam.slicio.us: {{ blog_name }}{% block title %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}blogs/css/base.css?v=2008080171928" />
<link rel="shortcut icon" href="/static/img/favicon.ico" type="image/x-icon">
<script type="text/javascript" src="{{ JQUERY_PREFIX }}jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="{{ JQUERY_PREFIX }}ui/jquery-ui-personalized-1.5.min.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}blogs/js/base.js"></script>
{% block feeds %}
    <link rel="alternate" type="application/rss+xml" 
        title="jam.slicio.us: {{ blog_slug }}" href="http://jam.slicio.us/blogs/feeds/latest/{{ blog_slug }}/" />
{% endblock %}
{% block extrahead %}{% endblock %}
</head>

<body class="{{ page_class }}">
<div id="container"> 
    <div id="header">
        <h1><a href="http://jam.slicio.us/"><span>jam.slicio.us</span></a></h1>
        {% block blogheader %}
            <h2><a href="{% url blogs.main.index blog_slug %}"><span>{{ blog_name }}</span></a></h2>
        {% endblock %}
        <ul>
            <li>&raquo; <a href="/wedding/">Wedding Site</a></li>
            <li>&raquo; <a href="/blogs/wedding-blog/">Wedding Blog</a></li>
        </ul>
        <div class="hr"><hr /></div>
    </div> 
    <div id="main" class="clearfix">
        <div id="content"> 
            {% block contenttop %}{% endblock %}
            {% block blogcontent %}{% endblock %}
            {% block contentbottom %}{% endblock %}
            <div class="hr"><hr /></div>
        </div> 
        <div id="sidebar">
            {% block blogsidebar %}
                <div class="widget">
                    <h2><a href="{% url blogs.main.index blog_slug %}">{{ blog_name }}</a></h2>
                    {{ blog_description|safe }}
                    <div class="hr"><hr /></div>
                </div>
                
                {# The widgets can be removed and ordered as desired. #}
                
                <div class="widget">
                    {% include 'blogs/widgets/tag_list.html' %}
                    <div class="hr"><hr /></div>
                </div>
                
                <div class="widget">
                    {% include 'blogs/widgets/archives_list.html' %}
                    <div class="hr"><hr /></div>
                </div>
                
                <div class="widget">
                    {% include 'blogs/widgets/search.html' %}
                    <div class="hr"><hr /></div>
                </div>
                
                <div class="widget">
                    {% include 'blogs/widgets/latest_posts.html' %}
                    <div class="hr"><hr /></div>
                </div>
                
                <div class="widget">
                    {% include 'blogs/widgets/latest_comments.html' %}
                    <div class="hr"><hr /></div>
                </div>
                
                <div class="widget">
                    {% include 'blogs/widgets/blogroll.html' %}
                    <div class="hr"><hr /></div>
                </div>
                
                {% block extrasidebar %}{% endblock %}
            {% endblock %}
        </div> 
    </div> 
    <div id="footer">
        <p><a href="http://www.djangoproject.com/"><img src="/static/img/djangosite100x25_grey.gif" alt="A Django Site" /></a></p>
        <p>&copy; Copyright {% now "Y" %} Jack Hsu.</p>
        <div class="hr"><hr /></div>
    </div> 
</div>

<script type="text/javascript">
    $(document).ready(function(){
        $b.init();
    });
</script>

<script type="text/javascript">
    $b.slug = "{{blog_slug}}";
    $b.ajaxBaseURL = "/blogs/{{blog_slug}}/ajax/";
</script>

{% block extrabody %}{% endblock %}

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-300789-2");
pageTracker._trackPageview();
</script>

</body>
</html>
